package com.system.orderserver.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 根据订单ID查询订单详情中的商品信息
 */
@ApiModel("根据订单ID查询订单详情中的商品信息")
public class GoodsResult {
    @ApiModelProperty(name = "goodsId",notes = "商品ID")
    private Integer goodsId;
    @ApiModelProperty(name = "goodsName",notes = "商品名称")
    private String goodsName;
    @ApiModelProperty(name = "goodsOldprice",notes = "商品原先价格")
    private Double goodsOldprice;
    @ApiModelProperty(name = "goodsNewprice",notes = "商品现价")
    private Double goodsNewprice;
    @ApiModelProperty(name = "goodsFreight",notes = "商品运费")
    private Double goodsFreight;//商品运费
    @ApiModelProperty(name = "goodsNumber",notes = "商品数量")
    private Integer goodsNumber;
    @ApiModelProperty(name = "specificationsName",notes = "商品规格名称")
    private String specificationsName;//规格名称
    @ApiModelProperty(name = "stockId",notes = "库存ID")
    private Integer stockId;//库存ID


    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getGoodsOldprice() {
        return goodsOldprice;
    }

    public void setGoodsOldprice(Double goodsOldprice) {
        this.goodsOldprice = goodsOldprice;
    }

    public Double getGoodsNewprice() {
        return goodsNewprice;
    }

    public void setGoodsNewprice(Double goodsNewprice) {
        this.goodsNewprice = goodsNewprice;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getSpecificationsName() {
        return specificationsName;
    }

    public void setSpecificationsName(String specificationsName) {
        this.specificationsName = specificationsName;
    }

    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    @Override
    public String toString() {
        return "GoodsResult{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsOldprice=" + goodsOldprice +
                ", goodsNewprice=" + goodsNewprice +
                ", goodsNumber=" + goodsNumber +
                ", specificationsName='" + specificationsName + '\'' +
                ", stockId=" + stockId +
                '}';
    }

    public Double getGoodsFreight() {
        return goodsFreight;
    }

    public void setGoodsFreight(Double goodsFreight) {
        this.goodsFreight = goodsFreight;
    }
}
